package com.finance_provider.service.impl;

import com.entity.SaleAdvance;
import com.finance_provider.mapper.SaleAdvanceMapper;
import com.finance_provider.service.SaleAdvanceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: RinPromise
 * @Date: 2021/9/22 14:54
 */
@Service
public class SaleAdvanceServiceImpl implements SaleAdvanceService {

    @Resource
    private SaleAdvanceMapper saleAdvanceMapper;

    @Override
    public Boolean addSaleAdvance(SaleAdvance saleAdvance) {
        return saleAdvanceMapper.addSaleAdvance(saleAdvance);
    }

    @Override
    public Boolean updateSaleAdvance(SaleAdvance saleAdvance) {
        return saleAdvanceMapper.updateSaleAdvance(saleAdvance);
    }

    @Override
    public List<SaleAdvance> querySaleAdvance(SaleAdvance saleAdvance) {
        return saleAdvanceMapper.querySaleAdvance(saleAdvance);
    }

    @Override
    public SaleAdvance querySaleAdvanceId(Long id) {
        return saleAdvanceMapper.querySaleAdvanceId(id);
    }

    @Override
    public Boolean deleteSaleAdvance(Long id) {
        return saleAdvanceMapper.deleteSaleAdvance(id);
    }
}
